﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ApprovalFlow.Models
{
    /// <summary>
    /// 步骤的描述内容
    /// </summary>
    public interface IStepDescription
    {
        /// <summary>
        /// 节点id
        /// </summary>
        public string Id { get; set; }

        public string Type { get; set; }

        /// <summary>
        /// 节点名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 节点属性
        /// </summary>
        public string Properties { get; set; }

        public IStepDescription ChildNode { get; set; }

        IEnumerable<ExecutionPointer> Builder(WorkflowInstance instance, ExecutionPointer master);

    }
}
